.class Lcom/instagram/android/fragment/dn;
.super Ljava/lang/Object;
.source "HashtagFeedFragment.java"


# static fields
.field private static a:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static b:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private static c:Ljava/lang/String;

.field private static d:Ljava/lang/String;


# direct methods
.method public static a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 178
    sget-object v0, Lcom/instagram/android/fragment/dn;->b:Ljava/util/HashSet;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/instagram/android/fragment/dn;->a:Ljava/util/HashSet;

    if-nez v0, :cond_1

    .line 179
    :cond_0
    invoke-static {p0}, Lcom/instagram/android/fragment/dn;->a(Landroid/content/Context;)V

    .line 181
    :cond_1
    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 182
    sget-object v1, Lcom/instagram/android/fragment/dn;->b:Ljava/util/HashSet;

    invoke-virtual {v1, v0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 183
    sget-object v0, Lcom/instagram/android/fragment/dn;->d:Ljava/lang/String;

    .line 187
    :goto_0
    return-object v0

    .line 184
    :cond_2
    sget-object v1, Lcom/instagram/android/fragment/dn;->a:Ljava/util/HashSet;

    invoke-virtual {v1, v0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 185
    sget-object v0, Lcom/instagram/android/fragment/dn;->c:Ljava/lang/String;

    goto :goto_0

    .line 187
    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static a(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 157
    sget v0, Lcom/facebook/ba;->advisory_eating_disorder_warning:I

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/instagram/android/fragment/dn;->d:Ljava/lang/String;

    .line 158
    sget v0, Lcom/facebook/ba;->advisory_self_harm_warning:I

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/instagram/android/fragment/dn;->c:Ljava/lang/String;

    .line 161
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/as;->self_harm:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 162
    new-instance v1, Ljava/util/HashSet;

    array-length v2, v0

    invoke-direct {v1, v2}, Ljava/util/HashSet;-><init>(I)V

    sput-object v1, Lcom/instagram/android/fragment/dn;->a:Ljava/util/HashSet;

    .line 163
    sget-object v1, Lcom/instagram/android/fragment/dn;->a:Ljava/util/HashSet;

    invoke-static {v0, v1}, Lcom/instagram/android/fragment/dn;->a([Ljava/lang/String;Ljava/util/HashSet;)V

    .line 166
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/as;->eating_disorders:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 167
    new-instance v1, Ljava/util/HashSet;

    array-length v2, v0

    invoke-direct {v1, v2}, Ljava/util/HashSet;-><init>(I)V

    sput-object v1, Lcom/instagram/android/fragment/dn;->b:Ljava/util/HashSet;

    .line 168
    sget-object v1, Lcom/instagram/android/fragment/dn;->b:Ljava/util/HashSet;

    invoke-static {v0, v1}, Lcom/instagram/android/fragment/dn;->a([Ljava/lang/String;Ljava/util/HashSet;)V

    .line 169
    return-void
.end method

.method public static a([Ljava/lang/String;Ljava/util/HashSet;)V
    .locals 3
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Ljava/lang/String;",
            "Ljava/util/HashSet",
            "<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 172
    array-length v1, p0

    const/4 v0, 0x0

    :goto_0
    if-ge v0, v1, :cond_0

    aget-object v2, p0, v0

    .line 173
    invoke-virtual {p1, v2}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    .line 172
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 175
    :cond_0
    return-void
.end method
